#include <iostream>
using namespace std;


struct Box
{
	double length;
	double breadth;
	double height;

	double volume()
		{
			return length * breadth * height;
	
		}
};
	int main()
	{
	Box firstbox = {80.0, 50.0, 40.0};
	Box* pBox = &firstbox;
	

	
	cout << "the volume of the first box"<< pBox->volume() << endl;
	Box* pdynBox = new Box;
	cout << "the new box \t"<<pdynBox<< endl;
	pdynBox->height = pBox->height+5.0;
	pdynBox->length = pBox->length-3.0;
	pdynBox->breadth = pBox->breadth-2.0;
	
	cout << "volume of box in the free store is "<< pdynBox->volume()<< endl;
	delete pdynBox;
	return 0;
	}
